﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsAppTcChess
{
    public partial class FrmMain : Form
    {
        //游戏对象说明
        private Game _game;

        public FrmMain()
        {
            InitializeComponent();
        }

         
        private void FrmMain_Load(object sender,EventArgs e)
        {
            //初始化游戏类
            _game = new Game();
        }

        private void GameArea_Paint(object sender,PaintEventArgs e)
        {
            if (_game!=null)//游戏已经初始化
            {
                _game.Draw(e.Graphics, this.GameArea.Size);
            }
        }

        private void FrmMain_Load_1(object sender, EventArgs e)
        {

        }
    }
}
